class NonTradingError(Exception):

    def __init__(self, ErrorInfo):
        super().__init__(self) #初始化父类
        self.errorinfo = ErrorInfo

    def __str__(self):
        return self.errorinfo


class FundNotFoundError(Exception):

    def __init__(self, ErrorInfo):
        super().__init__(self) #初始化父类
        self.errorinfo = ErrorInfo

    def __str__(self):
        return self.errorinfo


class OpHasBeenRecordedError(Exception):

    def __init__(self, ErrorInfo):
        super().__init__(self) #初始化父类
        self.errorinfo = ErrorInfo

    def __str__(self):
        return self.errorinfo 